const siderbar = [
  {
    path: "/layout/home", // 默认子路由
    name: "Home",
    component: () => import("@/views/home/index.vue"),
    meta: {
      id: 1,
      title: "首页",
      icon: "el-icon-location",
    },
  },
  // css
  {
    path: "/layout/css",
    name: "Css",
    component: () => import("@/views/css/index.vue"),
    meta: {
      id: 3,
      title: "Css样式",
      icon: "el-icon-document",
    },
    children: [
      {
        path: "/layout/css",
        name: "Css",
        component: () => import("@/views/css/index.vue"),
        meta: {
          id: 3,
          title: "Css样式",
          icon: "el-icon-document",
        },
      },
      {
        path: "/layout/lazyLoad",
        name: "LazyLoad",
        component: () => import("@/views/lazyload/index.vue"),
        meta: {
          id: 2,
          title: "图片懒加载",
          icon: "el-icon-menu",
        },
      },
    ],
  },
  // 文件上传
  {
    path: "/layout/upload-file",
    name: "upload-file",
    component: () => import("@/views/upload-file/index.vue"),
    meta: {
      id: 4,
      title: "文件上传",
      icon: "el-icon-setting",
    },
  },
  // 文件预览
  {
    path: "/file-preview",
    name: "file-preview",
    component: () => import("@/views/file-preview/index.vue"),
    meta: {
      id: 6,
      title: "文件预览",
      icon: "el-icon-setting",
    },
  },
];
export default siderbar;
